<script type="text/javascript">
    RED.nodes.registerType('sheet',{
        category: 'Spreadsheet',
        color: "#DEBD5C",
        defaults: {
            name: {value:""},
            sheetName: {value:"Sheet1"}
        },
        inputs:1,
        outputs:1,
        icon: "font-awesome/fa-table",
        label: function() {
            return this.name||"sheet";
        },
        labelStyle: function() {
            return this.name?"node_label_italic":"";
        },
        inputLabels: function() {
            return this._("sheet.label.workbookObject");
        },
        outputLabels: function () {
            return this._("sheet.label.sheetObject");
        }
    });
</script>

<script type="text/x-red" data-template-name="sheet">
    <div class="form-row">
        <label for="node-input-name"><i class="icon-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
        <input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
    </div>
    <div class="form-row">
        <label for="node-input-sheetName"><i class="icon-tag"></i> <span data-i18n="sheet.label.sheetName"></span></label>
        <input type="text" id="node-input-sheetName" data-i18n="[placeholder]sheet.placeholder.sheetName">
    </div>
</script>
